﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using bdnt_pets_system.Tools;

namespace bdnt_pets_system.Converter
{
    public class ColumnVisibleConverter : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        Visibility cuVisibility = Visibility.Visible;
        public Visibility CuVisibility
        {
            get
            {
                return cuVisibility;
            }
            set
            {
                cuVisibility = value;
                PropertyChanged(this, new PropertyChangedEventArgs("CuVisibility"));
            }
        }
         
        public string Param
        {
            set
            {
                if (value == "en")
                {
                    if (SessionManager.IsCN_ZH)
                        cuVisibility = Visibility.Collapsed;
                    cuVisibility = Visibility.Visible;
                }
                else
                {
                    if (SessionManager.IsCN_ZH)
                        cuVisibility = Visibility.Visible;
                    cuVisibility = Visibility.Collapsed;
                }

            }
        }

    }
}
